import { ApiProperty } from '@nestjs/swagger';
import { isEmpty, IsNotEmpty, MaxLength, MinLength } from 'class-validator';
export class TokenCreateDto {
  @IsNotEmpty({ message: '用户名不能为空' })
  @ApiProperty()
  username: string;
  // @IsNotEmpty({ message: '密码不能为空' })
  // @MinLength(6, { message: '密码不能少于6位' })
  // @ApiProperty()
  // password: string;
}
